package com.leadership.api.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.leadership.entity.evaluation.Evaluation;
import com.leadership.entity.evaluation.EvaluationType;

/**
 * 
 * @author mohanlan
 *
 */
@Dao("hibernate")
public interface EvaluationDao {
    
    @Query("FROM Evaluation WHERE disabled = false AND currentProjectId = :projectId AND email = :email AND type = :type")
    public Evaluation load(@Variable("projectId") Long projectId, @Variable("email") String email, @Variable("type") EvaluationType type); 
    
}
